<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-body">
                <!-- Search -->
                <form th:id="form-data" th:action="@{/productOrder/findQuery}" th:object="${productOrder}" method="post">
                    <div class="form-group form-group-bot">
                        <label class="col-sm-1 control-label search-label">订单编号</label>
                        <div class="col-sm-3 col-search">
                            <input type="text" class="form-control" th:field="*{OrderNumber}" th:autocomplete="off" placeholder="请输入订单编号" />
                        </div>
                        <div class="col-sm-1 col-search-btn">
                            <button class="btn btn-sm btn-primary" type="button" onclick="loadSearchData()">查询</button>
                        </div>
                    </div>
                </form>
                <!-- Show Data -->
                <table class="table table-striped table-hover table-bordered">
                    <tr class="text-center">
                        <th class="col-sm-1">#</th>
                        <th class="col-sm-1">订单编号</th>
                        <th class="col-sm-1">商品名称</th>
                        <th class="col-sm-1">价格</th>
                        <th class="col-sm-1">总价</th>
                        <th class="col-sm-1">数量</th>
                        <!--<th class="col-sm-1">操作</th>-->
                    </tr>
                    <tbody>
                        <tr th:each="obj,stat : ${data}">
                            <td th:text="${stat.count}"></td>
                            <td th:text="${obj.OrderNumber}"></td>
                            <td th:text="${obj.productName}"></td>
                            <td th:text="${obj.productPrice}"></td>
                            <td th:text="${obj.productTotal}"></td>
                            <td th:text="${obj.productCount}"></td>
                            <!--<td><button class="btn btn-sm btn-primary btn-lit left" type="button"-->
                                        <!--th:onclick="'javascript:loadEditData(\'' + @{/product/edit(id=${obj.id},editType='EDIT')} + '\')'">编辑-->
                            <!--</button>-->
                                <!--<button class="btn btn-sm btn-danger btn-lit left" type="button" style="margin-left: 1px;"-->
                                        <!--th:onclick="'javascript:loadDeleteData(\'' + @{/product/delete(id=${obj.id})} + '\')'">删除-->
                                <!--</button></td>-->
                        </tr>
                    </tbody>
                </table>
                <div class="bottom-no-data" th:if="${data.totalPages eq 0}">对不起~没有数据~</div>
                <!-- Pagination -->
                <div th:include="~{common/pagination :: pagin}"></div>
            </div>
        </div>
    </div>
</div>
<!--<script th:src="@{/manager/js/user.js}"></script>-->

